package com.kaili.pojo.dto.ewb;

import com.kaili.common.PageRequest;
import com.kaili.common.util.CommonRegexUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @author xjh
 * @ClassName EwbAddDTO
 * @Description 托运开单新增实体类
 * @Date 下午2:13 18-5-22
 * @Version 1.0
 */
@Data
public class EwbQueryDTO extends PageRequest{
    @Pattern(regexp = CommonRegexUtil.REGEX_EWB_NO_NULL,message = "运单号应为[A-Za-z0-9]组成的1-30位字符")
    @ApiModelProperty("托运单号")
    private String ewbNo;

    @ApiModelProperty("开单开始时间")
    private String ewbStartTime;

    @ApiModelProperty("开单结束时间")
    private String ewbEndTime;

    @Pattern(regexp = "^[0-1]{1}$",message = "是否已处理应为[0-1]组成的1位字符")
    @ApiModelProperty("是否已处理")
    private String isLoading;

    @ApiModelProperty("发货人id")
    private Integer sendCustomerId;
}
